package me.cxlr.shaopinghelper.util;


import static android.content.Context.VIBRATOR_SERVICE;

import android.app.Activity;
import android.os.Vibrator;

/**
 * @author ShanLunZhi
 */
public class VibratorUtil {

    @Deprecated
    public static void vibrate(Activity activity) {
        Vibrator vibrator = (Vibrator) activity.getSystemService(VIBRATOR_SERVICE);
        if (vibrator.hasVibrator()) {
            vibrator.vibrate(50);
        }
    }
}
